<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>注册 - 电商网站</title>
    <link rel="stylesheet" href="css/style.css">
</head>
<body>
    <header>
        <div class="container">
            <h1 class="logo">电商网站</h1>
            <nav>
                <ul>
                    <li><a href="index.html">首页</a></li>
                    <li><a href="#" id="login-link">登录</a></li>
                    <li><a href="register.html">注册</a></li>
                    <li><a href="cart.html">购物车 (<span id="cart-count">0</span>)</a></li>
                    <li><a href="profile.html">我的账户</a></li>
                </ul>
            </nav>
        </div>
    </header>

    <main class="container">
        <div class="auth-container">
            <h1>用户注册</h1>
            
            <form id="register-form" class="auth-form">
                <div class="form-group">
                    <label for="reg-name">姓名</label>
                    <input type="text" id="reg-name" name="name" required>
                </div>
                
                <div class="form-group">
                    <label for="reg-email">邮箱</label>
                    <input type="email" id="reg-email" name="email" required>
                </div>
                
                <div class="form-group">
                    <label for="reg-password">密码</label>
                    <input type="password" id="reg-password" name="password" required minlength="6">
                </div>
                
                <div class="form-group">
                    <label for="reg-confirm-password">确认密码</label>
                    <input type="password" id="reg-confirm-password" name="confirm-password" required>
                </div>
                
                <div class="form-group">
                    <label for="reg-phone">手机号码</label>
                    <input type="tel" id="reg-phone" name="phone">
                </div>
                
                <div class="form-group">
                    <label for="reg-address">收货地址</label>
                    <textarea id="reg-address" name="address" rows="3"></textarea>
                </div>
                
                <div class="form-group terms">
                    <label>
                        <input type="checkbox" name="terms" required> 我已阅读并同意<a href="#">用户协议</a>
                    </label>
                </div>
                
                <button type="submit" class="submit-btn">注册</button>
                
                <div class="form-footer">
                    <p>已有账号? <a href="login.html">立即登录</a></p>
                </div>
            </form>
        </div>
    </main>

    <footer>
        <div class="container">
            <p>&copy; 2023 电商网站. 保留所有权利.</p>
        </div>
    </footer>

    <script src="js/auth.js"></script>
</body>
</html>